import request from '@/utils/request'


// 值班人员列表
export function listDutyPerson(query) {
  return request({
    url: '/iot/api/park/dutyList',
    method: 'get',
    params: query
  })
}

// 成本构成分析
export function getCostConstructionAnalysis(params) {
  return request({
    url: '/iot/api/park/composition',
    method: 'get',
    params
  })
}

// 能耗分析
export function getEnergyConsumptionAnalysis(params) {
  return request({
    url: '/iot/api/park/energyAnalysis',
    method: 'get',
    params
  })
}

// 能耗趋势分析
export function getEnergyConsumptionTrendAnalysis(params) {
  return request({
    url: '/iot/api/park/energyTrend',
    method: 'get',
    params
  })
}

// 门禁记录列表
export function listAccessControlRecord(query) {
  return request({
    url: '/iot/api/park/accessControlList',
    method: 'get',
    params: query
  })
}